
from django.conf.urls import url
from . import views

urlpatterns = [
    # 1 图形验证码image_code_url = this.host + "/image_codes/" + this.image_code_id + "/"
    url(r'image_codes/(?P<uuid>[\w-]+)/$', views.ImageCodeView.as_view(), name='imagecode'),
    # 2 短信验证码 '/sms_codes/' + this.mobile + '/?image_code=' + this.image_code + '&image_code_id=' + this.image_code_id
    url(r'sms_codes/(?P<mobile>1[3-9]\d{9})/', views.SmscodeView.as_view(), name='smscode')
]
